package com.cskaoyan.controller.wx_home;

import com.cskaoyan.bean.BaseRespVo;
import com.cskaoyan.bean.wx_home.WxHomeIndexVO;
import com.cskaoyan.service.wx_home.WXHomeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description: 前台的home的首页
 * @author: enhui
 **/
@RestController
@RequestMapping("wx/home")
public class WXHomeController {
    @Autowired
    WXHomeService wxHomeService;

    @RequestMapping("index")
    public BaseRespVo index() {
        WxHomeIndexVO goodsIndexVO = wxHomeService.index();
        return BaseRespVo.ok(goodsIndexVO);
    }
}
